﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Pages_Medias_IP" %>

<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar"
    runat="Server">
    <table>
        <tr>
            <td>
                模糊查询:
                <asp:TextBox ID="txtAccount" runat="server" Width="100px" Field="UID,IPs" Opt="%"></asp:TextBox>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <asp:GridView ID="gvInfos" runat="server">
        <Columns>
            <asp:TemplateField ItemStyle-Width="50">
                <HeaderTemplate>
                    <input id="cbhALL" type="checkbox" onclick="SelectAll('<% =gvInfos.ClientID %>', this, 'cbItem');" /><label
                        for="cbhALL"></label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="cbItem" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="UID" SortExpression="UID" HeaderText="用户帐号" />
            <asp:BoundField DataField="IPs" SortExpression="IPs" HeaderText="授权IP" />
            <asp:BoundField DataField="LastEditBy" SortExpression="LastEditBy" HeaderText="最后修改人" />
            <asp:BoundField DataField="LastEditDate" SortExpression="LastEditDate" HeaderText="最后修改时间" />
            <asp:TemplateField HeaderText="删除" ItemStyle-Width="50">
                <ItemTemplate>
                    <asp:LinkButton ID="lbDelete" Text="删除" CausesValidation="true" CommandName="Delete"
                        OnClientClick="return confirm('确定删除吗？');" runat="server">
                    </asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField HeaderText="修改" Text="修改" DataNavigateUrlFields="GID" DataNavigateUrlFormatString="Edit.aspx?ID={0}"
                ItemStyle-Width="50" />
        </Columns>
    </asp:GridView>
</asp:Content>
